//
//  buttonItem.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/7/5.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "buttonItem.h"

@implementation buttonItem

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.topLB = [UILabel labelWithText:@"100" textColor:mineTextColor fontSize:13];
    [_topLB sizeToFit];
    [self addSubview:_topLB];
    [_topLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.bottom.equalTo(self.mas_centerY).offset(-rateHeight(8));
    }];
    
    self.bottomLB = [UILabel labelWithText:@"我的积分" textColor:mineTextColor fontSize:13];
    [_bottomLB sizeToFit];
    [self addSubview:_bottomLB];
    [_bottomLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self.mas_centerY).offset(rateHeight(8));
    }];
}

@end
